/*
 * $Id: SFTPTask.java,v 1.1 2009/04/30 21:25:41 navdeep_mahajan Exp $
 * 
 * Copyright (C) 2006 General Electric Company. All Rights Reserved.
 * 
 * This software is the confidential and proprietary information of the General
 * Electric Company (GE). You shall not disclose this software and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with GE.
 * 
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
 * DERIVATIVES.
 */
package com.ge.healthcare.autosc.processor.dispatcher.tasks;

import com.ge.healthcare.autosc.common.commands.SFTPCommand;
import com.ge.healthcare.autosc.common.exceptions.SFTPCommandException;
import com.ge.healthcare.autosc.processor.exception.FileTransferException;

/**
 * @author 212042764
 * 
 */
public class SFTPTask extends FileTransferTask {

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.ge.healthcare.autosc.processor.dispatcher.tasks.FileTransferTask#
	 * setUpFTCommand()
	 */
	@Override
	protected void setUpFTCommand() {
		try {
			ftCommand = new SFTPCommand();
		} catch (SFTPCommandException stpCommandException) {
			throw new FileTransferException(
					"Failed to initialize SFTP Command", PRC_SFTP_F_INIT_001);
		}
	}

}
